
#include "NanoCore.h"

using namespace Nano;

NanoCore::NanoCore() {
	documentManager = new DocumentManager();
}

NanoCore::~NanoCore() {
	
}

void NanoCore::Init() {
	createNewDocument();
}

Document *NanoCore::createNewDocument() {
	Document *newDocument = documentManager->createNewDocument();
	createDocumentView(newDocument);
	return newDocument;
}

DocumentManager *NanoCore::getDocumentManager() {
	return documentManager;
}

